﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserControlListaContas.ascx.cs" Inherits="TrabalhoWeb.UserControlListaContas" %>

<style type="text/css">
    .lista1 
    {
        float:left;
    }
    .lista2
    {
        float:right;
        height: 218px;
    }
    
</style>

 <h2>Messias Alessandro Soares</h2>
 <h2>Diego</h2>
 <div class= "lista1" >
 <h3 style="width: 469px">Lista de Contas</h3>
 


 <asp:GridView ID="grvListaContas" runat="server" AutoGenerateColumns="False"  onrowcommand="grvListaContas_RowCommand">
    <Columns>
        <asp:TemplateField>
        <ItemTemplate>
            <asp:LinkButton ID="lnkConsultar" CommandName="Consultar" CommandArgument='<%# Eval("ID") %>'
            Text='<%# Eval("NOME") %>' runat="server"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>



    

</div>

 <div class="lista2">
 <br />
 <br />
 <h3>Contas</h3>

 <asp:GridView ID="grvContas" runat= "server" AutoGenerateColumns="False" style="margin-left: 0px" 
         Width="514px" onrowcommand="grvContas_RowCommand">

         <Columns>
        <asp:TemplateField>
        <ItemTemplate>
        <a href="DetalheConta.aspx?CodigoConta=<%# Eval("ID") %>">'<%# Eval("Nome") %>'</a>              
        </ItemTemplate>
        
        </asp:TemplateField>
        <asp:BoundField DataField = "Descricao" HeaderText = "Descrição"    />

    </Columns>

</asp:GridView>
    
     </div>
<br />
  <br />
